export type clueModel = {
  clueName: string //线索名称
  clueNumber: string //线索编号
  createdBy: string //创建人
  createdTime: string //创建时间
  delFlag: number //是否删除 0否 1是
  id: number //主键ID
  provideId: number //征集信息主键ID
  receiveTime: string //接收时间
  receiveUserId: number //接收人ID
  statusCode: string //状态 关联字典A40
  transferUserId: number //移交人ID
  updatedBy: string //更新人
  updatedTime: string //更新时间
  receiveUser: string //接收人
  statusName: string //状态
  transferUser: string //移交人
  totalCount: number //总行数
}

const api: ApiConfig = {
  list: {
    url: '/collection/clue/list', //线索主表分页列表
    method: 'GET'
  },
  listNew: {
    url: '/collection/clueManage/list', //线索管理主表分页列表
    method: 'GET'
  },
  // 线索下拉框列表
  clueOptions:{
    url: '/collection/controller/listCollectorOptions',
    method: 'GET',
  },
  // 藏家下拉列表
  controllerOptions:{
    url: '/collection/controller/listCollectorOptions',
    method: 'GET',
  },
  querypiciList:{
    url: '/collection/clueManage/listBatchByClueId',
    method: 'GET',
  },
  // /collection/clueManage/delete
  delete: {
    url: '/collection/clue/delete', //删除线索主表信息
    method: 'POST'
  },
  deleteNew: {
    url: '/collection/clueManage/delete', //删除线索主表信息
    method: 'POST'
  },
  deleteClueItem: {
    url: '/collection/clue/deleteClueItem', //删除线索征集品
    method: 'POST'
  },
  listItemsByClueId: {
    url: '/collection/clue/listItemsByClueId', //线索征集品列表
    method: 'GET'
  },
  baseInfo: {
    method: 'GET',
    url: '/collection/clue/baseInfo/:id' //线索信息
  },
  // /collection/clueManage/info/{id}
  infoManage: {
    method: 'GET',
    url: '/collection/clueManage/info/:id' //线索信息
  },
  detailInfo: {
    method: 'GET',
    url: '/collection/clue/detailInfo/:id' //线索信息
  },
  // 新的线索新增
  saveNew: {
    url: '/collection/clueManage/save',
    method: 'POST'
  },
  // 新的线索修改
  updateNew: {
    url: '/collection/clueManage/update',
    method: 'POST'
  },
  save: {
    url: '/collection/clue/save',
    method: 'POST'
  },
  updateClue: {
    url: '/collection/clue/updateClue',
    method: 'POST'
  },
  //字典表
  listByParentCode: {
    method: 'GET',
    url: '/sys/dic/listByParentCode'
  },
  downloadTemplate: {
    url: '/collection/clue/downloadTemplate', //线索整理 · 下载导入物品信息模版
    method: 'GET',
    responseType: 'blob'
  },
  importCollectingItems: {
    url: '/collection/clue/importCollectingItems', //线索整理 · 导入物品信息
    method: 'POST',
    headers: {
      'content-type': 'multipart/form-data'
    }
  },
  listCollectorOptions: {
    url: '/collection/controller/listCollectorOptions',
    method: 'GET',
  },
  listProvideOptionsByCollectorId: {
    url: '/collection/controller/listProvideOptionsByCollectorId',
    method: 'GET',
  },
  infoProvideByCollectorId: {
    url: '/collection/collectNotice/infoProvideByCollectorId',
    method: 'GET',
  },
  parentCode: {
    url: '/sys/sysRegion/list/:parentCode',
    method: 'GET',
  },
}


export default api
